/*
 * Comm_resources.c
 *
 *  Created on: Feb 6, 2013
 *      Author: justin
 */
#include "project.h"
//#include <util/crc16.h>
#include <stdarg.h>
#include <stdio.h>

xQueueHandle xCharsForTx;

void Usart_puts(const char * const pcString) {
	signed portCHAR *pxNext;

//     ( void ) pxPort;

	/*  Send each character in the string, one at a time. */

	pxNext = (signed char*) pcString;
	while (*pxNext) {
		xSerialPutChar(NULL,*pxNext,0);
		pxNext++;
	}
}

//void Usart_printf(const char * formatType,...){
//	va_list arg;
//	va_start(arg,formatType);
//	vsnprintf((char*) serial,0,0);
//
//	PSTR("string!");
//	xSerialPutChar(NULL,(unsigned int *)xCharsForTx,1);
//
//}

int Usart_putc(signed char char_temp) {
	xSerialPutChar(NULL,char_temp,0);
	return 0;
}

//int UsartGetString(signed char *const outstring,maxStringLength){
//	int serialRxTimeout =
//
//
//
//	return 0;
//}

